package com.ruicar.afs.cloud.apply.pre.approve.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruicar.afs.cloud.apply.common.entity.PreApproveInfo;
import com.ruicar.afs.cloud.apply.pre.approve.condition.PreApproveCondition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : jihuigeng
 */
public interface PreApproveMapper extends BaseMapper<PreApproveInfo> {
    /**
     * 多条件查询-多条预审批信息
     *
     * @param page
     * @param condition
     * @return
     */
    IPage<PreApproveInfo> getPreApproveInfoList(@Param("query") PreApproveCondition condition, Page page, @Param("allStatus") List<String> allStatus);

    /**
     * 多条件查询-单个预审批信息
     *
     * @param condition
     * @return
     */
    List<PreApproveInfo> getPreApproveInfo(@Param("query") PreApproveCondition condition);

}
